package org.apache.lucene.ocean.util;

/**
 * Constants used in the Ocean system
 */
public interface Constants {
  /** Object id that uniquely identifies an object over time */
  public static final String ID = "_id_long".intern();
  public static final String INDEXID = "_indexid_long".intern();
  
  /**
   * Combined id and version field for looking up an object
   */
  public static final String ID_VERSION = "_id_version".intern();
  /**
   * Document id is a unique id per document
   */
  public static final String DOCUMENTID = "_documentid_long".intern();
  /**
   * Snapshot id of the transaction the document was a part of
   */
  public static final String SNAPSHOTID = "_snapshotid_long".intern();
  /**
   * Version of the object the document represents
   */
  public static final String VERSION = "_version_long".intern();
  /**
   * Date the document was created
   */
  public static final String DATE_CREATED = "_datecreated_date".intern();
  /**
   * Date the document was modified
   */
  public static final String DATE_MODIFIED = "_datemodified_date".intern();
  public static final int DOCUMENTS_TYPE = 1;
  public static final int RAM_DIRECTORY_TYPE = 2;
  
  public static final int DELETES_SERIALIZE_TYPE = 1;
}
